﻿using System;
using ATM.Terminal.Models;
using ATM.Terminal.Rendering.Base;
using ATM.Terminal.Shared;

namespace ATM.Terminal.Rendering
{
    public class ConsoleRenderTarget : RenderTargetBase
    {
        public override void Render(ScreenModel screenModel)
        {
            Console.Clear();
            Console.WriteLine(screenModel.Title);
            Console.WriteLine(screenModel.Title.Mask());
            Console.Write("\n\n");

            foreach (var line in screenModel.Content)
            {
                Console.WriteLine(line);
            }
        }
    }
}
